package com.haoyu.number.Thread;

/**
 * @author: 蒿雨
 * @create: 2021-12-07 17:01
 * @description:执行类
 */
public class Test {
    public static void main(String[] args) {
        //对于继承了thread类的实体类可以直接声明线程变量
        Thread thread = new T01();
        Thread thread1 = new T02();
        //修改线程名
        thread.setName("乌龟");
        thread1.setName("兔子");

        thread.start();
        thread1.start();
    }
}
